#include <stdio.h>

int main()
{
	int a,b,c;
while(scanf("%d%d%d",&a,&b,&c)!=EOF)
	{;
	if(a<=b&&b>c)
		printf("%d",b);
	else if(a<=c&&c>b)
		printf("%d",c);
	else if(a>=b&&a>c)
 	printf("%d",a);
    }
	return 0;
}
